import 'package:json_annotation/json_annotation.dart';

import 'bt_user_info.dart';

part 'bt_login_result.g.dart';

@JsonSerializable()
class BtLoginResult {
  final bool isFirstRegister;
  final String token;
  @JsonKey(name: 'userInfo')
  final BtUserInfo userInfo;

  const BtLoginResult({
    required this.isFirstRegister,
    required this.token,
    required this.userInfo,
  });

  factory BtLoginResult.fromJson(Map<String, dynamic> json) => _$BtLoginResultFromJson(json);

  Map<String, dynamic> toJson() => _$BtLoginResultToJson(this);
}
